#metaA work-in-progress library of generally useful templates for rendering queries.-- Renders a page object as a linked list item
templates.pageItem = template.new([==[
* [[${name}]]
]==])
-- Renders a task object as a togglable task
templates.taskItem = template.new([==[
* [${state}] [[${ref}]] ${name}
]==])
Examples
template.pageItem:
${template.each(query[[from index.tag "page" limit 3]], templates.pageItem)}template.taskItem:${template.each(query[[from index.tag "task" where page == _CTX.currentPage.name]], templates.taskItem)}